package indi.zhifa.study2024.class002.busy.generalTest.enums.bill.consign;

import com.baomidou.mybatisplus.annotation.EnumValue;
import indi.zhifa.study2024.core.enummemo.entity.ann.EnumDesc;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
@EnumDesc(name = "销售单报表排序",desc = "销售单报表排序",defaultIdx = 1,defaultItem = "订单时间")
public enum EConsignReportOrderType {

    BILL_TIME(1,"订单时间","订单时间","bill_time"),
    GROSS(2,"毛利","毛利润","gross"),
    PROFIT(3,"利润","利润","profit"),
    COST(4,"成本","成本","cost"),
    PROFIT_RATIO(5,"利润率","利润率","profit_ratio");

    @EnumValue
    @Getter
    private final int code;
    @Getter
    private final String name;
    @Getter
    private final String desc;
    @Getter
    private final String key;
}
